<?php
/**
 * WX端的接口
 */


////用户
//$router->get('token', 'UserController@getToken');
////上传
//$router->post('upload', 'UploadController@setUpload');
//首页
//$router->group(['prefix'=>'video'], function () use ($router) {
//    $router->post('index', 'VideoController@getIndex');
//});


//APP_KEY
$router->get('appkey', function(){ return str_random(32); });
/**
 * 首页
 */
//产品
$router->post('index/farm/index', 'VideoController@getFarmIndex');
//视频
$router->post('index/video/index', 'VideoController@getVideoIndex');
/**
 * 我的
 */
//橱窗列表
$router->post('mys/farm/index', 'FarmController@getOwnerIndex');
//交易列表
$router->post('mys/trade/index', 'TradeController@getMyIndex');